package com.jt.service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jt.mapper.ItemDescMapper;
import com.jt.mapper.ItemMapper;
import com.jt.mapper.RightMapper;
import com.jt.pojo.Item;
import com.jt.pojo.ItemDesc;
import com.jt.pojo.Rights;
import com.jt.vo.PageResult;
import com.jt.vo.SysResult;
import com.jt.vo.itemVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.List;

@Service
public class RightServiceImpl implements RightService {
    @Autowired
    private RightMapper rightsMapper;

    @Override
    public List<Rights> getRightsList() {
        //利用左连接的方式获取数据
        //return rightsMapper.getRightsList();

        //利用子查询的方式获取数据
        return rightsMapper.getRightsList();
    }
}

